<?php
/** .-------------------------------------------------------------------
* |  Software: [HDCMS framework]
* |      Site: www.hdcms.com
* |-------------------------------------------------------------------
* |    Author: 向军 <2300071698@qq.com>
* |    WeChat: aihoudun
* | Copyright (c) 2012-2019, www.houdunwang.com. All Rights Reserved.
* '-------------------------------------------------------------------*/

namespace app\admin\controller;

class Entry extends Common {
    //动作
    public function index(){
    //此处书写代码...
        return view();
    }
    public function changePass(){
        //实例化模型方法
        $changePass = new \system\model\Ccshop_user();
        //post提交
//        p($_POST);die;
        if(IS_POST) {

            if($changePass->changePass())
            {
                message('修改成功','','success');
            }
            message($changePass->getError(),'','error');
        }
        return view();
    }
}
